import React, { startTransition } from 'react'
import { useNavigate } from 'react-router-dom'
import '../css/notlogin.css'

export default function Notlogin() {
  const navigate = useNavigate()
  return (
    <div className='cxb_notlogin_box'>
      <p>欢迎来到OMINI</p>
      <div className='cxb_notlogin_box_div'>
        <p>想看更多？立即登录</p>
        <button onClick={()=>{
          startTransition(()=>{
            navigate('')
          })
        }}>登录</button>
      </div>
    </div>
  )
}
